class Author {
  String? userId;
  String? nickname;
  String? avatar;
  int? gender;
  int? age;
  String? country;
  String? status;
  int? callCoins;
  String? unit;
  List<String>? videoMapPaths;
  int? followNum;
  bool? isFriend;
  bool? isMultiple;
  String? about;
  int? grade;
  String? analysisLanguage;
  bool? isSignBroadcaster;
  int? showRoomVersion;
  int? broadcasterType;

  Author(
      {this.userId,
      this.nickname,
      this.avatar,
      this.gender,
      this.age,
      this.country,
      this.status,
      this.callCoins,
      this.unit,
      this.videoMapPaths,
      this.followNum,
      this.isFriend,
      this.isMultiple,
      this.about,
      this.grade,
      this.analysisLanguage,
      this.isSignBroadcaster,
      this.showRoomVersion,
      this.broadcasterType});

  Author.fromJson(Map<String, dynamic> json) {
    userId = json['userId'];
    nickname = json['nickname'];
    avatar = json['avatar'];
    gender = json['gender'];
    age = json['age'];
    country = json['country'];
    status = json['status'];
    callCoins = json['callCoins'];
    unit = json['unit'];
    videoMapPaths = json[videoMapPaths] != null?json['videoMapPaths'].cast<String>():[];
    followNum = json['followNum'];
    isFriend = json['isFriend'];
    isMultiple = json['isMultiple'];
    about = json['about'];
    grade = json['grade'];
    analysisLanguage = json['analysisLanguage'];
    isSignBroadcaster = json['isSignBroadcaster'];
    showRoomVersion = json['showRoomVersion'];
    broadcasterType = json['broadcasterType'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['userId'] = userId;
    data['nickname'] = nickname;
    data['avatar'] = avatar;
    data['gender'] = gender;
    data['age'] = age;
    data['country'] = country;
    data['status'] = status;
    data['callCoins'] = callCoins;
    data['unit'] = unit;
    data['videoMapPaths'] = videoMapPaths;
    data['followNum'] = followNum;
    data['isFriend'] = isFriend;
    data['isMultiple'] = isMultiple;
    data['about'] = about;
    data['grade'] = grade;
    data['analysisLanguage'] = analysisLanguage;
    data['isSignBroadcaster'] = isSignBroadcaster;
    data['showRoomVersion'] = showRoomVersion;
    data['broadcasterType'] = broadcasterType;
    return data;
  }
}

